//时间格式化
export function FormatTime(time,fmt){
  var o = {
      "M+": time.getMonth() + 1, //月份 
      "d+": time.getDate(), //日 
      "H+": time.getHours(), //小时 
      "m+": time.getMinutes(), //分 
      "s+": time.getSeconds(), //秒 
      "q+": Math.floor((time.getMonth() + 3) / 3), //季度 
      "S": time.getMilliseconds() //毫秒 
  };
  if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (time.getFullYear() + "").substr(4 - RegExp.$1.length));
  for (var k in o)
  if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  return fmt;
}

export function formatTime1 (date_str) {
  var s1 = date_string.replace(/-/g,"/")
  var s2 = s1.replace(/T/g," ")
  var date = new Date(s2)
  return FormatTime(date, 'MM月dd日')
}